﻿using System;

namespace WebMachine.Models
{
	public class StrangeRevisionData
	{
		public DateTime Date { get; set; }
		public int Revision { get; set; }
		public string Author { get; set; }
		public string Message { get; set; }
		public double Value { get; set; }
		public int AddedFiles { get; set; }
		public int RemovedFiles { get; set; }
		public int ModifiedFiles { get; set; }
		public double PercentageOfAverage { get; set; }
		
		public override string ToString()
		{
			return string.Format("{0} ({4}% of avg) r.{1} {2} by {3}", Value, Revision, Date.ToShortDateString(), Author, (int)PercentageOfAverage);
		}
	}
}